#@layout()
#define nav()
	#@studentNav()
#end
#define main()
		#for(x : project)
		#if(x.status != "结项")
		<div class="panel panel-primary">
		<div class="panel-heading">
			<h4 class="panel-title">
				<a data-toggle="collapse" data-parent="#accordion" 
				   href="#collapse#(x.id)">
					#(x.name)
				</a>
			</h4>
		</div>
		<div id="collapse#(x.id)" class="panel-collapse collapse">
			<div class="panel-body">
				<ul class="list-group">
   					<li class="list-group-item">项目编号:&nbsp&nbsp&nbsp&nbsp#(x.projectId)</li>
   					<li class="list-group-item">申报年份:&nbsp&nbsp&nbsp&nbsp#(x.year)</li>
   					<li class="list-group-item">报送单位:&nbsp&nbsp&nbsp&nbsp#(x.organization)</li>
   					<li class="list-group-item">项目类型:&nbsp&nbsp&nbsp&nbsp#(x.type)</li>
   					<li class="list-group-item">项目级别:&nbsp&nbsp&nbsp&nbsp#(x.levels)</li>
   					<li class="list-group-item">负责人姓名:&nbsp&nbsp&nbsp&nbsp#(x.personsResponsibleName)</li>
   					<li class="list-group-item">负责人学号:&nbsp&nbsp&nbsp&nbsp#(x.personsResponsibleNumber)</li>
   					<li class="list-group-item">项目其他成员:&nbsp&nbsp&nbsp&nbsp#(x.otherPeople)</li>
   					<li class="list-group-item">参与学生人数:&nbsp&nbsp&nbsp&nbsp#(x.number)</li>
   					<li class="list-group-item">指导教师姓名:&nbsp&nbsp&nbsp#(x.teacherName)</li>
   					<li class="list-group-item">指导教师职称:&nbsp&nbsp&nbsp&nbsp#(x.teacherTitle)</li>
   					<li class="list-group-item">项目所属以及学科代码:&nbsp&nbsp&nbsp&nbsp#(x.code)</li>
   					<li class="list-group-item">负责学生联系电话:&nbsp&nbsp&nbsp&nbsp#(x.phone)</li>
   					<li class="list-group-item">第一指导教师联系电话:&nbsp&nbsp&nbsp&nbsp#(x.teacherPhone)</li>
   					<textarea class="form-control" rows="5" id="introduction" name="project.introduction" value="#(x.introduction)" readonly="readonly">简介：#(x.introduction)</textarea>
   					<li class="list-group-item">项目状态:&nbsp&nbsp&nbsp&nbsp#(x.status)</li>
   					<li class="list-group-item">项目申报文件:
   					#for(i : file)
   						#if(i.key == x.projectId&&i.value!=null)
   							#for(j = 0; j< i.value.length; j++)
   								<a href="../file/project/#(x.projectId)/application/#(i.value[j])" download><font color="blue">点击下载文件：#(i.value[j])</font></a></br>
   								&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
   							#end
   							#if(i.value.length>1)
   								<a href="../file/project/#(x.projectId)application.zip" download><font color="red">点击下载所有文件</font></a>
   							#end
   						#end
   					#end
   					</li>
   					<li class="list-group-item">项目结项文件:
   					#for(k : endfile)
   						#if(k.key == x.projectId&&k.value!=null)
   							#for(j = 0; j< k.value.length; j++)
   								<a href="../file/project/#(x.projectId)/end/#(k.value[j])" download><font color="blue">点击下载文件：#(k.value[j])</font></a></br>
   								&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
   							#end
   							#if(k.value.length>1)
   								<a href="../file/project/#(x.projectId)end.zip" download><font color="red">点击下载所有文件</font></a>
   							#end
   						#end
   					#end
   					</li>
   					<li class="list-group-item">
   					<form class="form-horizontal" role="form" method="post" action="/student/endFile?projectID=#(x.projectId)" enctype="multipart/form-data">
						
						<div class="form-group">
							<label for="paper" class="col-sm-3 control-label">发表论文</label>
								<div class="col-sm-8">
									<textarea class="form-control" rows="10" id="paper" name="paper" #if(x.paper == null ) placeholder="发表论文篇数和期刊名称，论文题目及发表页码（多少页至多少页）"#else placeholder="#(x.paper)-------需要修改请重写-----" #end></textarea>
								</div>
						</div>
						<div class="form-group">
							<label for="inputfile" class="col-sm-2 control-label">上传项目结项文件：</label>
								<div class="col-sm-10">
									<input type="file" id="inputfile" name="file">
								</div>
						</div>
						<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-default">提交</button>
						</div>
						</div>
					
					</form>
					</li>
				</ul>
				
			</div>
		</div>
		</div>
		#end
		#end
#end